﻿<Window x:Class="WpfPaint.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <DockPanel Name="Dock" LastChildFill="True">
        <WrapPanel DockPanel.Dock="Top">
            <Button Name="Line" Content="Line" Click="Line_Click" />
            <Button Name="Rectangle" Content="Rectangle" Click="Rectangle_Click" />
            <Button Name="Save" Content="Save" Click="Save_Click" />
            <Button Name="Load" Content="Load" Click="Load_Click" />
        </WrapPanel>
        <Canvas x:Name="canvas" MouseDown="Canvas_MouseDown" MouseMove="Canvas_MouseMove" MouseUp="Canvas_MouseUp"
                Background="Transparent" >
            <Rectangle Fill="Blue" Width="100" Height="100" Panel.ZIndex="2" />
            <Rectangle Fill="Red" Canvas.Left="50" Canvas.Top="50" Width="100" Height="100" />
            <Line Stroke="Green" X1="10" X2="100" Y1="12" Y2="244" /> 
            <Ellipse Stroke="Aqua" Canvas.Left="100" Canvas.Top="200" Width="50" Height="50" />
            <Image Source="C:\Users\Public\Pictures\Sample Pictures\Penguins.jpg" Canvas.Left="300" Width="200" Height="150" />
            <Polyline Stroke="Aqua" Canvas.Left="250" Points="10,5 150,80 106,250" />
        </Canvas>
    </DockPanel>
</Window>
